home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / 4_0 / GNUUCP_2 / SOURCE / UUXQT_MA.C < prev    next >
C/C++ Source or Header  |  1989-08-14  |  722b  |  38 lines

  1. /*  uuxqt.c: Lol Grant. 23rd. Sept 1987.
  2.          read uucp C.<hostname>XXXXX files and execute the
  3.          commands in them.
  4. */
  5.  
  6. #include "includes.h"
  7. #include "uucp.h"
  8. #include "rmail_proto.h"
  9.  
  10. #define RMAIL
  11.  
  12. main(argc, argv)
  13. int argc;
  14. char **argv;
  15. {
  16.     int i;
  17.     char command[60], addressee[60], input[60], output[60], line[132];
  18.     char file[NAMESIZE];
  19.     char *xfile;
  20.     char tmp_str[255];
  21.     FILE *fd;
  22.     int pid, status;
  23.  
  24.     for (i = 1; i < argc; i++) {
  25.     if (argv[i][0] != '-')
  26.         break;
  27.     switch (argv[i][1]) {
  28.  
  29.     default:
  30.         printf("uuxqt: unknown flag ignored\n");
  31.  
  32.     case 'x':
  33.         debug = atoi(&argv[i][2]);
  34.         printf("uuxqt: debug level set to %d\n", debug);
  35.         break;
  36.     return(uuxqut(argv, argc));
  37.     }
  38.